]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Animate the context menu
authorAdel Gadllah <adel.gadllah@gmail.com>
Mon, 18 Feb 2013 20:56:21 +0000 (21:56 +0100)
committerAdel Gadllah <adel.gadllah@gmail.com>
Mon, 18 Feb 2013 21:00:39 +0000 (22:00 +0100)
Use animation for opening and closing the menu.

js/ui/messageTray.js

index 57ab243be77165f13ba34ec72d9f1b2eb56d3ded..dc182d89731ff147087019b0fabec24fe2497696 100644 (file)
@@ -1766,11 +1766,11 @@ const MessageTray = new Lang.Class({
         this._grabHelper.grab({ actor: this._contextMenu.actor,
                                 grabFocus: true,
                                 onUngrab: Lang.bind(this, function () {
-                                    this._contextMenu.close();
+                                    this._contextMenu.close(BoxPointer.PopupAnimation.FULL);
                                     this._unlock();
                                 })
         });
-        this._contextMenu.open();
+        this._contextMenu.open(BoxPointer.PopupAnimation.FULL);
     },
 
     close: function() {